import vuex from 'vuex'
import Vue from 'vue'
const actions={

}
const mutations={
    SHOW(state,value){
        state.show=value;
    },
    PUBLISHSHOW(state,value){
        state.publishShow=value    

    },
    SEARCH(state,value){
        state.searchContent=value
    },
    commitSearch(state,value){
        state.searchList=value

    },
    GETUSER(state,value){
        state.user=value
    },
    GETARTICLE(state,value){
        state.article=value
    },
    FOLLOW(state,value){
        state.isfollow=value;
    },
    setfollowArticles(state,value){
        state.followArticles=value;
    }
}
const state={
    show:false,
    publishShow:false,
    article:{
        articleId:"",
    },
    user:{
        // userId:""
    },
    searchContent: "",
    searchList:"",
    isfollow:"",
    followArticles:""
}
Vue.use(vuex)
export default new vuex.Store({
    actions,mutations,state
})